<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<link rel="stylesheet" href="__app__/admin/view/StoreLabel/labelList/labelList.css" />
<body>
<!---------------- 标签列表 ------------------->

<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3>
                <i class="icon iconfont">{$Think.session.currentMenu.icon}</i>{$Think.session.currentMenu.menuTitle}
                <div class="operation-div">
                	{if $add eq 1}
                    <a class="btn btn-success" href="addLabel">添加</a>
                    {/if}
                </div>
            </h3>
            <div class="inner-section row">
                <div id="content">
                    <div class="list-title">
                        <div class="list-title-panel">
                            <span class="glyphicon glyphicon-list"></span>列表</span>
                        </div>

                    </div>
                    <div class="table-content" id = "list_container">
                        <table id="list-table" class="list-table table-hover table-bordered" cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
                            <tbody>
                            <tr>
                                <th>缩略图</th>
                                <th>标签名称</th>
                                <th>排序系数</th>
                                <th>操作</th>
                            </tr>
                            {if $labelList}
                            {foreach $labelList as $label}
                            <tr>
                                <td>{if $label.thumb}<img src="../../{$label.thumb}" height="50">{else}无{/if}</td>
                                <td>{$label.name}</td>
                                <td>{$label.order_index}</td>
                                <td>
                                	
                                    {if $label.gids}
                                    {if $isGoods eq 1}
                                    <a class="btn btn-primary btn-xs" href="labelGoodsList?id={$label.id}">查看商品集</a>
                                    {/if}
                                    {/if}
                                     {if $update eq 1}
                                    <a class="btn btn-xs btn-primary" href="editLabel?id={$label.id}" target="_self">编辑</a>
                                    {/if}
                                     {if $delete eq 1}
                                    <a class="btn btn-xs btn-default delete" data-id="{$label.id}">删除</a>
                                    {/if}
                                </td>
                            </tr>
                            {/foreach}
                            {else}
                            <tr><td colspan="4"><p class="text-danger">暂时无数据。</p></td></tr>
                            {/if}
                            </tbody>
                        </table>
                    </div>

                    <div class="fn-clear"></div>
                    <!-- 列表底部 -->
                    <div class="list-bottom">
                        <div class="list-bottom-panel">
                        </div>
                    </div>

                </div>
                <!--分页-->
                <div id="page-selection"></div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}

<!-- jsfiles -->
{include file="common/page/jsfiles"}
<script type="text/javascript" src="__app__/admin/view/StoreLabel/labelList/labelList.js"></script>
</body>
</html>